package com.trade.module.daq.entity;

import com.trade.module.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description: 采集策略实体类
 *
 * @Version v1.0 2017/6/17 12:11
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "daq_collect_rule")
public class CollectRule extends BaseEntity implements Serializable{
    private static final long serialVersionUID = -525891809541385023L;

    @Column(
            name = "rule_name",
            length = 64
    )
    private String ruleName;//规则名称

    @Column(length = 2)
    private String isFinish;//运行状态 00未运行，01正在运行 02已完成

    @Column(length = 5)
    private String status;  //01启用 02禁用

    @Column(length = 1)
    private String isTiming;//规则类型  （y:及时任务，n：定时任务）

    @Column(length = 32)
    private String timeReg;//定时正则表达式

    @Column(length = 32)
    private String sourceID;//数据源ID

    @Column(length = 32)
    private String targetID;//目标源ID

    @Column(length = 20)
    private String outType;// 输出方式：Constants.OutType

    @Column(length = 10)
    private String  isIncrement;//同步方式 y:增量更新 n:全量更新

    @Column(length = 20)
    private String incMode;//增量模式 时间戳：INCMODE_TIMESTAMP,计数：MUM_COUNT

    @Column(length = 20)
    private String handleCode;//增量处理字段，选择源表字段

    @Column(length = 64)
    private String recordId;//记录id

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getIsFinish() {
        return isFinish;
    }

    public void setIsFinish(String isFinish) {
        this.isFinish = isFinish;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIsTiming() {
        return isTiming;
    }

    public void setIsTiming(String isTiming) {
        this.isTiming = isTiming;
    }

    public String getTimeReg() {
        return timeReg;
    }

    public void setTimeReg(String timeReg) {
        this.timeReg = timeReg;
    }

    public String getSourceID() {
        return sourceID;
    }

    public void setSourceID(String sourceID) {
        this.sourceID = sourceID;
    }

    public String getTargetID() {
        return targetID;
    }

    public void setTargetID(String targetID) {
        this.targetID = targetID;
    }

    public String getOutType() {
        return outType;
    }

    public void setOutType(String outType) {
        this.outType = outType;
    }

    public String getIsIncrement() {
        return isIncrement;
    }

    public void setIsIncrement(String isIncrement) {
        this.isIncrement = isIncrement;
    }

    public String getIncMode() {
        return incMode;
    }

    public void setIncMode(String incMode) {
        this.incMode = incMode;
    }

    public String getHandleCode() {
        return handleCode;
    }

    public void setHandleCode(String handleCode) {
        this.handleCode = handleCode;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }
}
